Electronic device and screen adjusting method based on condition of user&#39;s eye

ABSTRACT

A method for adjusting a display screen of an electronic device is disclosed. The method includes obtaining a pupil image of a user of the electronic device. An eye condition of the user is determined by analyzing the pupil image. The proportions between a red channel, a green channel, and a blue channel (RGB) of a display screen of the electronic device is adjusted according to the eye condition.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to Taiwanese Patent Application No.105110676 filed on Apr. 5, 2016, the contents of which are incorporatedby reference herein.

FIELD

The subject matter herein generally relates to managing technology, andparticularly to an electronic device and a method for adjusting adisplay screen of the electronic device.

BACKGROUND

Improper or extended use of an electronic device may cause deteriorationof a user's eyesight.

BRIEF DESCRIPTION OF THE DRAWINGS

Many aspects of the disclosure can be better understood with referenceto the following drawings. The components in the drawings are notnecessarily drawn to scale, the emphasis instead being placed uponclearly illustrating the principles of the disclosure. Moreover, in thedrawings, like reference numerals designate corresponding partsthroughout the several views.

FIG. 1 is a block diagram of one exemplary embodiment of an electronicdevice including a screen adjusting system.

FIG. 2 is a block diagram of one exemplary embodiment of modules of thescreen adjusting system of FIG. 1.

FIGS. 3A-3D illustrate examples of identifying an eye condition of auser.

FIG. 4 illustrates a flow chart of one exemplary embodiment of a firstmethod of adjusting a display screen of the electronic device of FIG. 1.

FIG. 5 illustrates a flow chart of one exemplary embodiment of a secondmethod of adjusting a display screen of the electronic device of FIG. 1.

DETAILED DESCRIPTION

It will be appreciated that for simplicity and clarity of illustration,where appropriate, reference numerals have been repeated among thedifferent figures to indicate corresponding or analogous elements. Inaddition, numerous specific details are set forth in order to provide athorough understanding of the embodiments described herein. However, itwill be understood by those of ordinary skill in the art that theembodiments described herein can be practiced without these specificdetails. In other instances, methods, procedures, and components havenot been described in detail so as not to obscure the related relevantfeature being described. Also, the description is not to be consideredas limiting the scope of the embodiments described herein. The drawingsare not necessarily to scale and the proportions of certain parts may beexaggerated to better illustrate details and features of the presentdisclosure.

The present disclosure, referencing the accompanying drawings, isillustrated by way of examples and not by way of limitation. It shouldbe noted that references to “an” or “one” embodiment in this disclosureare not necessarily to the same embodiment, and such references mean “atleast one.”

Furthermore, the term “module”, as used herein, refers to logic embodiedin hardware or firmware, or to a collection of software instructions,written in a programming language, such as Java, C, or assembly. One ormore software instructions in the modules can be embedded in firmware,such as in an EPROM. The modules described herein can be implemented aseither software and/or hardware modules and can be stored in any type ofnon-transitory computer-readable medium or other storage device. Somenon-limiting examples of non-transitory computer-readable media includeCDs, DVDs, BLU-RAY, flash memory, and hard disk drives.

FIG. 1 is a block diagram of one embodiment of an electronic device.Depending on the embodiment, an electronic device 1 can include, but isnot limited to, a screen adjusting system 10, a display screen 11, animage gathering device 12, a storage device 13, at least one processor14. In at least one exemplary embodiment, the electronic device 1 can bea mobile phone, a tablet computer, a personal digital assistant, or anyother suitable device such as a smart television. FIG. 1 illustratesonly one example of the electronic device 1, other examples can includemore or fewer components than illustrated, or have a differentconfiguration of the various components in other exemplary embodiments.

In at least one exemplary embodiment, the screen adjusting system 10adjusts the display screen 11 according to an eye condition of a user ofthe electronic device 1. For example, when the user of the electronicdevice 1 is determined to be old, because of age-related cataracts forexample, the screen adjusting system 10 can adjust proportions between ared channel, a green channel, and a blue channel (hereinafter“proportions between RGB”) of the display screen 11 by decreasing theblue channel.

In at least one exemplary embodiment, the image gathering device 12 canbe a camera device or a human face scanner. The image gathering device12 can be used to capture images of the user of the electronic device 1.In at least one exemplary embodiment, the image gathering device 12 canbe integrated in the electronic device 1. For example, the imagegathering device 12 can be a built-in front-facing camera of theelectronic device 1. In other exemplary embodiments, the image gatheringdevice 12 can be externally connected with the electronic device 1. Forexample, the image gathering device 12 can connect with the electronicdevice 1 using a universal serial bus (USB).

In at least one exemplary embodiment, the storage device 13 can be amemory of the electronic device 1. In other exemplary embodiments, thestorage device 13 can be a secure digital card, or other externalstorage device such as a smart media card. The storage device 13 can beused to store data of the electronic device 1.

The at least one processor 14 can be a central processing unit (CPU), amicroprocessor, or other data processor chip that performs functions ofthe electronic device 1.

FIG. 2 illustrates a block diagram of one exemplary embodiment ofmodules of the screen adjusting system 10. In at least one exemplaryembodiment, the screen adjusting system 10 can include an obtainingmodule 101, an analyzing module 102, and a processing module 103. Themodules 101-103 include computerized codes in the form of one or moreprograms that may be stored in the storage device 13. The computerizedcodes include instructions that can be executed by the at least oneprocessor 14.

The obtaining module 101 can obtain an image of pupil (hereinafter“pupil image”) of the user of the electronic device 1.

In at least one exemplary embodiment, the obtaining module 101 cancontrol the image gathering device 12 to capture an image of the user.The obtaining module 101 can recognize a face area from the image of theuser using a preset face recognition method. The obtaining module 101can recognize an eye area from the face area using a preset eyerecognition method. The obtaining module 101 can recognize a pupil areafrom the eye area, and clip or extract the pupil area from the eye areato obtain the pupil image.

In at least one exemplary embodiment, the preset face recognition methodcan include, but is not limited to, a face template matching method, ora skin template matching method. The preset eye recognition method caninclude, but is not limited to, a Hough Transform method, or atemplate-deformation method. In at least one exemplary embodiment, theobtaining module 101 can recognize the pupil area from the eye area bycomparing the eye area with a preset pupil image template. When an areaof the eye area matches with the preset pupil image template, theobtaining module 101 can determine the area is the pupil area.

The analyzing module 102 can determine an eye condition of the user byprocessing and analyzing the pupil image.

In at least one exemplary embodiment, the analyzing module 102 canprocess the pupil image using a high-contrast and low-light imageprocessing method and obtain a processed pupil image. The analyzingmodule 102 can analyze the processed pupil image by analyzing agrayscale and chrominance variances of the processed pupil image.

In at least one exemplary embodiment, as illustrated in FIG. 3A, whenthe analyzing module 102 determines that the grayscale of a middleportion 21 of a pupil image 2 is within a first preset range such as [50to 150], the analyzing module 102 can determine that the eye of the userhas cataract, i.e., the user has an eye disease. The analyzing module102 can determine that the eye of the user is not normal.

In at least one exemplary embodiment, as illustrated in FIG. 3B, whenthe analyzing module 102 determines that the grayscale of the middleportion 21 is within a second preset range around zero, the analyzingmodule 102 can determine that the eye of the user is in a normal state,i.e., the user does not have an eye disease.

In at least one exemplary embodiment, as illustrated in FIG. 3C, whenthe analyzing module 102 determines that a red chroma of a side portion22 is within a third preset range such as [50 to 150], the analyzingmodule 102 can determine that the eye of the user is pinkeye, i.e., theuser has an eye disease. The analyzing module 102 can determine that theeye of the user is not normal.

In at least one exemplary embodiment, as illustrated in FIG. 3D, whenthe analyzing module 102 determines that a blue chroma of the pupilimage 2 is within a fourth preset range such as [50 to 150], theanalyzing module 102 can determine that the user is wearing contactlens(es). The analyzing module 102 can determine that the eye of theuser is not normal.

The processing module 103 can adjust the display screen 11 according tothe determined eye condition.

In at least one exemplary embodiment, when the eye of the user is in thenormal state, the processing module 103 makes no change to the displayscreen 11, i.e., the processing module 103 does not adjust the displayscreen 11.

In at least one exemplary embodiment, the processing module 103 canadjust the display screen 11 by adjusting the proportions between RGBwhen the eye of the user is deemed not normal.

For example, when the analyzing module 102 determines that the user hasan eye disease, the processing module 103 can decrease the blue channelof the display screen 11 to allow the user to look at the display screen11 more comfortably.

In at least one exemplary embodiment, when the analyzing module 102determines that the user is wearing contact lens(es), the processingmodule 103 can record a start time when the user begins to watch thedisplay screen 11 while wearing the contact lens(es). The processingmodule 103 can calculate a time length of the user wears the contactlens(es) based on the start time. When the time length is equal to orgreater than a preset time length (for example, 4 hours), the processingmodule 103 can transmit a prompt. For example, the processing module 103can display a preset message such as “please remove your contactlens(es)”, and/or play a preset warning audio message.

In at least one exemplary embodiment, when the analyzing module 102determines that the user is wearing contact lens(es), the processingmodule 103 can obtain a current time of the electronic device 1, and setthe current time as the start time.

In other exemplary embodiments, the processing module 103 can provide auser interface and record the start time in response to a user input.

In at least one exemplary embodiment, the obtaining module 101 obtainspupil images of the user from the start time. When the user isdetermined to be wearing contact lens(es) in each pupil image obtainedduring the preset time length, the processing module 103 can determinethat the user is wearing contact lens(es) for the preset time length.The processing module 103 can transmit the prompt.

In other exemplary embodiments, the obtaining module 101 can obtain apupil image of the user when a time length from the start time equalsthe preset time length. When the analyzing module 102 determines thatthe user is wearing contact lens(es) in the pupil image, the analyzingmodule 102 determines that the user is wearing contact lens(es) for thepreset time length, and the processing module 103 can transmit theprompt. That is, in the other exemplary embodiments, only one pupilimage is used for determining whether the user is wearing contactlens(es) for the preset time length.

In other exemplary embodiments, the obtaining module 101 can obtain afirst pupil image of the user when the start time is recorded. Theobtaining module 101 can obtain a second pupil image of the user when atime length calculated from the start time equals the preset timelength. When the analyzing module 102 determines that the user iswearing contact lens(es) in the first pupil image and the second pupilimage, the analyzing module 102 determines that the user has beenwearing contact lens(es) for the preset time length, and the processingmodule 103 can transmit the prompt. That is, only two pupil images areused for determining whether the user is wearing contact lens(es) forthe preset time length.

In at least one exemplary embodiments, the processing module 103 canadjust the display screen 11 according to changes in a diameter of thepupil (hereinafter “pupil diameter”) of the user in the pupil image.

In at least one exemplary embodiments, the analyzing module 102 candetermine the pupil diameter of the user in the pupil image using animage recognition algorithm. The processing module 103 can adjust abrightness value of a backlight of the display screen 11. For example,the processing module 103 can adjust the brightness value of thebacklight of the display screen 11 when the pupil diameter of the useris determined to be in different preset ranges.

The pupil diameter of the user generally changes according to abrightness value of a surrounding environment. The pupil diameter of theuser decreases when the brightness increases. Conversely, the pupildiameter of the user increases when the brightness decreases. In otherwords, the value of the pupil diameter of the user can represent thecurrent brightness value of the surrounding environment. That is, theprocessing module 103 can adjust the brightness value of the backlightof the display screen 11 according to the pupil diameter of the user.

For a first example, when the analyzing module 102 determines that thevalue of pupil diameter of the user is greater than or equal to 2 mm andless than or equal to 3 mm (i.e., [2 to 3 mm]), the processing module103 can determine that the user is in an environment with strong orbright light. The processing module 103 can increase a currentbrightness value of the backlight of the display screen 11. For a secondexample, when the analyzing module 102 determines that the value ofpupil diameter of the user is greater than 3 mm and less than or equalto 5 mm (i.e., (3 to 5 mm]), the processing module 103 can determinethat the user is in a comfortable environment. The processing module 103can keep the current brightness value of the backlight of the displayscreen 11 or slightly adjust the current brightness value of the displayscreen 11. For a third example, when the analyzing module 102 determinesthat the value of pupil diameter of the user is greater than 5 mm andless than or equal to 8 mm (i.e., (5 to 8 mm]), the processing module103 can determine that the user is in an environment with low light. Theprocessing module 103 can decrease the current brightness value of thebacklight of the display screen 11 to make it dimmer.

In at least one exemplary embodiment, to enable comfortable viewing, theprocessing module 103 can further adjust the display screen 11 accordingto eye actions. In at least one exemplary embodiment, the eye actionscan include, but are not limited to, frowning, narrowing of the eyes,and closing the eyes.

In at least one exemplary embodiment, the obtaining module 101 canobtain eye images of the user in real-time.

It should be noted that the method of obtaining the eye image of theuser is similar to the method of obtaining the pupil image. When the eyearea is recognized from the face area, the obtaining module 101 can clipor extract the eye area from the face area, thus the eye image isobtained.

In at least one exemplary embodiment, the analyzing module 102 candetermine the eye action by analyzing the eye image.

In at least one exemplary embodiment, the analyzing module 102 canpre-store a number of image templates. The number of image templatesincludes frown images, eye narrowing images, and eye closing images. Thefrown image can be defined as an image of eye area in which the userfrowns. The eye narrowing image can be defined as an image of eye areain which the user narrows his eyes. The eye closing image can be definedas an image of eye area in which the user closes at least one eye. In atleast one exemplary embodiment, the analyzing module 102 can determinethat the user frowns in the eye image when the eye image matches one ofthe frown image templates. Similarly, the analyzing module 102 candetermine that the user narrows eyes in the eye image when the eye imagematches one of the eye narrowing image templates. The analyzing module102 can determine that the user closes eyes in the eye image when theeye image matches one of the eye closing image templates.

In at least one exemplary embodiment, the processing module 103 canadjust the display screen 11 by adjusting the brightness value of thebacklight of the display screen 11 and/or the proportions between RGB ofthe display screen 11 according to the determined eye action. Forexample, when the user is determined to be closing his/her eyes, theprocessing module 103 can inactivate the display screen 11 to savepower.

In other exemplary embodiments, the analyzing module 102 can analyzewhether the user has eye fatigue, and the processing module 103 cancontrol the electronic device 1 accordingly to reduce eye fatigue.

In at least one exemplary embodiment, the analyzing module 102 cancalculate a ratio between a first total number of red pixels of the eyeimage and a second total number of all pixels of the eye image. Theanalyzing module 102 can determine that the user has eye fatigue whensuch ratio is greater than a preset ratio (for example, 70%). Theanalyzing module 102 can determine that the user does not have eyefatigue when the ratio is less than or equal to the preset ratio.

In at least one exemplary embodiment, the analyzing module 102 can firstfind the red pixels from the eye image according to the RGB value ofeach of pixels of the eye image. The analyzing module 102 can calculatethe first total number of the red pixels and the second total number ofall pixels of the eye image. The analyzing module 102 can divide thefirst total number by the second total number to obtain the ratio.

In at least one exemplary embodiment, when the user is determined to besuffering from eye fatigue, the processing module 103 can furthertransmit a prompt. For example, the processing module 103 can display apreset message on the display screen 11 or can play a predeterminedaudio message such as “your eyes are fatigued, please have a rest”.

It should be noted that when the user is lack of sleep, the eye area isbloodshot. Thus, the ratio can be used to determine whether the user haseye fatigue.

In at least one exemplary embodiment, when the user has eye fatigue, theprocessing module 103 can transmit the prompt to prompt the user to stopusing the electronic device 1. The processing module 103 can control theelectronic device 1 to enter a sleep state when the user has eyefatigue. In other exemplary embodiments, the processing module 103 canfurther wake up the electronic device 1 from the sleep state when theelectronic device 1 is kept in the sleep state for a predetermined timelength (for example, 10 minutes).

FIG. 4 illustrates a flowchart which is presented in accordance with anexample embodiment. The exemplary method 400 is provided by way ofexample, as there are a variety of ways to carry out the method. Themethod 400 described below can be carried out using the configurationsillustrated in FIG. 1, for example, and various elements of thesefigures are referenced in explaining exemplary method 400. Each blockshown in FIG. 4 represents one or more processes, methods, orsubroutines, carried out in the exemplary method 400. Additionally, theillustrated order of blocks is by example only and the order of theblocks can be changed according to the present disclosure. The exemplarymethod 400 can begin at block 401. Depending on the embodiment,additional steps can be added, others removed, and the ordering of thesteps can be changed.

At block 401, the obtaining module 101 can obtain a pupil image of theuser of the electronic device 1.

In at least one exemplary embodiment, the obtaining module 101 cancontrol the image gathering device 12 to capture an image of the user.The obtaining module 101 can recognize a face area from the image of theuser using a preset face recognition method. The obtaining module 101can recognize an eye area from the face area using a preset eyerecognition method. The obtaining module 101 can recognize a pupil areafrom the eye area, and clip or extract the pupil area from the eye areato obtain the pupil image.

In at least one exemplary embodiment, the preset face recognition methodcan include, but is not limited to, a face template matching method, ora skin template matching method. The preset eye recognition method caninclude, but is not limited to, a Hough Transform method, or atemplate-deformation method. In at least one exemplary embodiment, theobtaining module 101 can recognize the pupil area from the eye area bycomparing the eye area with a preset pupil image template. When an areaof the eye area matches with the preset pupil image template, theobtaining module 101 can determine the area is the pupil area.

At block 402, the analyzing module 102 can determine an eye condition ofthe user by processing the pupil image and analyzing the processed pupilimage.

In at least one exemplary embodiment, the analyzing module 102 canprocess the pupil image using a high-contrast and low-light imageprocessing method and obtain a processed pupil image. The analyzingmodule 102 can analyze the processed pupil image by analyzing agrayscale and chrominance variances of the processed pupil image.

In at least one exemplary embodiment, as illustrated in FIG. 3A, whenthe analyzing module 102 determines that the grayscale of a middleportion 21 of a pupil image 2 is within a first preset range such as [50to 150], the analyzing module 102 can determine that the eye of the userhas cataract, i.e., the user has an eye disease. The analyzing module102 can determine that the eye of the user is not normal.

In at least one exemplary embodiment, as illustrated in FIG. 3B, whenthe analyzing module 102 determines that the grayscale of the middleportion 21 is within a second preset range around zero, the analyzingmodule 102 can determine that the eye of the user is in a normal state,i.e., the user does not have an eye disease.

In at least one exemplary embodiment, as illustrated in FIG. 3C, whenthe analyzing module 102 determines that a red chroma of a side portion22 is within a third preset range such as [50 to 150], the analyzingmodule 102 can determine that the eye of the user is pinkeye, i.e., theuser has eye disease. The analyzing module 102 can determine that theeye of the user is not normal.

In at least one exemplary embodiment, as illustrated in FIG. 3D, whenthe analyzing module 102 determines that a blue chroma of the pupilimage 2 is within a fourth preset range such as [50 to 150], theanalyzing module 102 can determine that the user is wearing contactlens(es)es. The analyzing module 102 can determine that the eye of theuser is not normal.

At block 403, the processing module 103 can adjust the display screen 11according to the determined eye condition.

In at least one exemplary embodiment, when the eye of the user is in thenormal state, the processing module 103 can make no change to thedisplay screen 11, i.e., the processing module 103 does not adjust thedisplay screen 11.

In at least one exemplary embodiment, the processing module 103 canadjust the display screen 11 by adjusting the proportions between RGBwhen the eye of the user is deemed not normal.

For example, when the analyzing module 102 determines that the user hasan eye disease such as cataract or pinkeye, the processing module 103can decrease the blue channel of the display screen 11 to enable theuser to look at the display screen 11 more comfortably.

In at least one exemplary embodiment, when the analyzing module 102determines that the user is wearing contact lens(es), the processingmodule 103 can record a start time when the user begins to watch thedisplay screen 11 while wearing the contact lens(es). The processingmodule 103 can calculate a time length of the user wears the contactlens(es) based on the start time. When the time length is equal to orgreater than a preset time length (for example, 4 hours), the processingmodule 103 can transmit a prompt. For example, the processing module 103can display a preset message such as “please remove your contactlens(es)”, or play a preset warning audio message.

In at least one exemplary embodiment, when the analyzing module 102determines that the user is wearing contact lens(es), the processingmodule 103 can obtain a current time of the electronic device 1, and setthe current time as the start time. In other exemplary embodiments, theprocessing module 103 can provide a user interface and record the starttime in response to a user input.

In at least one exemplary embodiment, the obtaining module 101 obtainspupil images of the user from the start time. When the user isdetermined to be wearing contact lens(es) in each pupil image obtainedduring the preset time length, the processing module 103 can determinethat the user is wearing contact lens(es) for the preset time length.The processing module 103 can transmit the prompt.

In other exemplary embodiments, the obtaining module 101 can obtain apupil image of the user when a time length calculated from the starttime equals the preset time length. When the analyzing module 102determines that the user is wearing contact lens(es) in the pupil image,the analyzing module 102 determines that the user wears contact lens(es)for the preset time length, and the processing module 103 can transmitthe prompt. That is, in the other exemplary embodiments, only one pupilimage is used for determining whether the user wears contact lens(es)for the preset time length.

In other exemplary embodiments, the obtaining module 101 can obtain afirst pupil image of the user when the start time is recorded. Theobtaining module 101 can obtain a second pupil image of the user when atime length calculated from the start time equals the preset timelength. When the analyzing module 102 determines that the user iswearing contact lens(es) in the first pupil image and the second pupilimage, the analyzing module 102 determines that the user has beenwearing contact lens(es) for the preset time length, and the processingmodule 103 can transmit the prompt. That is, only two pupil images areused for determining whether the user is wearing contact lens(es) forthe preset time length.

In at least one exemplary embodiments, the processing module 103 canadjust the display screen 11 according to a pupil diameter of the userin the pupil image.

In at least one exemplary embodiments, the analyzing module 102 candetermine the pupil diameter of the user in the pupil image using animage recognition algorithm. The processing module 103 can adjust abrightness value of the backlight of the display screen 11. For example,the processing module 103 can adjust the brightness value of thebacklight of the display screen 11 when the pupil diameter of the useris determined to be in different preset ranges.

The pupil diameter of the user generally changes according to abrightness value of a surrounding environment. The pupil diameter of theuser decreases when the brightness value of the surrounding environmentincreases. Conversely, the pupil diameter of the user increases when thebrightness value of the surrounding environment decreases. In otherwords, the value of the pupil diameter of the user can represent thecurrent brightness value of the surrounding environment. That is, theprocessing module 103 can adjust the brightness value of the backlightof the display screen 11 according to the pupil diameter of the user.

For a first example, when the analyzing module 102 determines that thevalue of pupil diameter of the user is greater than or equal to 2 mm andless than or equal to 3 mm (i.e., [2 to 3 mm]), the processing module103 can determine that the user is in an environment with strong orbright light. The processing module 103 can increase a currentbrightness value of the backlight of the display screen 11. For a secondexample, when the analyzing module 102 determines that the value ofpupil diameter of the user is greater than 3 mm and less than or equalto 5 mm (i.e., (3 to 5 mm]), the processing module 103 can determinethat the user is in a comfortable environment. The processing module 103can keep the current brightness value of the backlight of the displayscreen 11 or slightly adjust the current brightness value of thebacklight of the display screen 11. For a third example, when theanalyzing module 102 determines that the value of pupil diameter of theuser is greater than 5 mm and less than or equal to 8 mm (i.e., (5 to 8mm]), the processing module 103 can determine that the user is in anenvironment with low light. The processing module 103 can decrease thecurrent brightness value of the backlight of the display screen 11.

After the blocks 401-403 are executed, to determine whether the user isadapted to the display screen 11 that has been adjusted, the method ofadjusting the display screen 11 can further include blocks 404-406.Blocks 404-406 illustrate a first exemplary embodiment of furtheradjusting the display screen 11 according to an eye action. A secondexemplary embodiment of further adjusting the display screen 11according to a determining result of whether the user has eye fatigue isillustrated in FIG. 5.

At block 404, the obtaining module 101 can obtain an eye image of theuser.

It should be noted that the method of obtaining the eye image of theuser is similar to the method of obtaining the pupil image. When the eyearea is recognized from the face area, the obtaining module 101 can clipor extract the eye area from the face area, thus the eye image isobtained.

At block 405, the analyzing module 102 can determine an eye action byanalyzing the eye image. In at least one exemplary embodiment, the eyeaction can include, but is not limited to, frowning, narrowing eye, andclosing eye.

In at least one exemplary embodiment, the analyzing module 102 canpre-store a number of image templates. The number of image templatesincludes frown images, eye narrowing images, and eye closing images. Thefrown image can be defined as an image of eye area in which the userfrowns. The eye narrowing image can be defined as an image of eye areain which the user narrows his/her eyes. The eye closing image can bedefined as an image of eye area in which the user closes at least oneeye. In at least one exemplary embodiment, the analyzing module 102 candetermine that the user frowns in the eye image when the eye imagematches one of the frown images templates. Similarly, the analyzingmodule 102 can determine that the user narrows eyes in the eye imagewhen the eye image matches one of the eye narrowing images templates.The analyzing module 102 can determine that the user closes eyes in theeye image when the eye image matches one of the eye closing imagestemplates.

At block 406, the processing module 103 can adjust the display screen 11by adjusting the brightness value of the backlight of the display screen11 and/or the proportions between RGB of the display screen 11 accordingto the determined eye action. For example, when the user is determinedto be closing his/her eye, the processing module 103 can inactivate thedisplay screen 11 to save power for the electronic device 1.

FIG. 5 illustrates the second exemplary embodiment of further adjustingthe display screen 11 according to the determining result of whether theuser has eye fatigue. The example method 500 is provided by way ofexample, as there are a variety of ways to carry out the method. Themethod 500 described below can be carried out using the configurationsillustrated in FIG. 1, for example, and various elements of thesefigures are referenced in explaining exemplary method 500. Each blockshown in FIG. 5 represents one or more processes, methods, orsubroutines, carried out in the exemplary method 500. Additionally, theillustrated order of blocks is by example only and the order of theblocks can be changed according to the present disclosure. The exemplarymethod 500 can begin at block 501. Depending on the embodiment,additional steps can be added, others removed, and the ordering of thesteps can be changed.

At block 501, the obtaining module 101 can obtain an eye image of theuser.

At block 502, the analyzing module 102 can calculate a ratio between afirst total number of red pixels of the eye image and a second totalnumber of all pixels of the eye image.

In at least one exemplary embodiment, the analyzing module 102 can firstfind the red pixels from the eye image according to the RGB value ofeach of the pixels of the eye image. The analyzing module 102 cancalculate the first total number of the red pixels and the second totalnumber of all pixels of the eye image. Thus, the analyzing module 102can calculate the ratio using the first total number and the secondtotal number. The analyzing module 102 can divide the first total numberby the second total number to obtain the ratio.

At block 503, the analyzing module 102 can determine whether the userhas eye fatigue according to the ratio. In at least one exemplaryembodiment, the analyzing module 102 can determine that the user has eyefatigue when the ratio is greater than a preset ratio (for example,70%). The analyzing module 102 can determine that the user does not haveeye fatigue when the ratio is less than or equal to the preset ratio.When the user has eye fatigue, the process goes to block 504. When theuser does not have eye fatigue, the process goes to block 501.

It should be noted that when the user has eye fatigue due to lack ofsleep, the eye area is bloodshot. Thus the ratio can be used todetermine whether the user has eye fatigue.

At block 504, when the user has eye fatigue, the processing module 103can transmit a prompt to prompt the user to stop using the electronicdevice 1. For example, the processing module 103 can display a presetmessage on the display screen 11 or can play a predetermined audiomessage such as “you are suffering eye fatigue, please have a rest”. Theprocessing module 103 can control the electronic device 1 to enter asleep state when the user has eye fatigue. In at least one exemplaryembodiment, the processing module 103 can further wake up the electronicdevice 1 from the sleep state when the electronic device 1 is kept inthe sleep state for a predetermined time length (for example, 10minutes).

It should be emphasized that the above-described embodiments of thepresent disclosure, including any particular embodiments, are merelypossible examples of implementations, set forth for a clearunderstanding of the principles of the disclosure. Many variations andmodifications can be made to the above-described embodiment(s) of thedisclosure without departing substantially from the spirit andprinciples of the disclosure. All such modifications and variations areintended to be included herein within the scope of this disclosure andprotected by the following claims.

What is claimed is:
 1. A method for adjusting a display screen of anelectronic device, the method comprising: obtaining a pupil image of auser of the electronic device; determining an eye condition of the userby analyzing the pupil image; and adjusting proportions between a redchannel, a green channel, and a blue channel (RGB) of the display screenaccording to the eye condition.
 2. The method according to claim 1,wherein the analyzing of the pupil image comprises: processing the pupilimage using a high-contrast and low-light image processing method andobtaining a processed pupil image; and analyzing the processed pupilimage by analyzing a grayscale and chrominance variances of theprocessed pupil image.
 3. The method according to claim 1, furthercomprising: in response to the user who is determined to have an eyedisease, adjusting the proportions between RGB by decreasing the bluechannel of the display screen.
 4. The method according to claim 1,further comprising: in response to the user wearing at least one contactlens, calculating a time length of the user wearing the at least onecontact lens; and transmitting a prompt when the time length equals to apreset time length.
 5. The method according to claim 1, furthercomprising: determining a pupil diameter of the user in the pupil image;and adjusting a brightness value of a backlight of the display screenaccording to the pupil diameter of the user.
 6. The method according toclaim 1, further comprising: obtaining an eye image of the user;determining an eye action of the user by analyzing the eye image; andadjusting the display screen according to the eye action.
 7. The methodaccording to claim 6, wherein the display screen is adjusted byadjusting a brightness value of the backlight of the display screenand/or adjusting the proportions between RGB of the display screenaccording to the eye action.
 8. The method according to claim 1, furthercomprising: obtaining an eye image of the user; calculating a ratio of afirst total number of red pixels in the eye image to a second totalnumber of all pixels in the eye image; determining whether the user haseye fatigue according to the ratio; and controlling a state of theelectronic device when the user has eye fatigue.
 9. The method accordingto claim 8, further comprising: controlling the electronic device toenter a sleep state when the user has eye fatigue; and waking up theelectronic device from the sleep state when the electronic device iskept the sleep state for a predetermined time length.
 10. An electronicdevice comprising: a display screen; a storage device; at least oneprocessor; and the storage device storing one or more programs, whichwhen executed by the at least one processor, cause the at least oneprocessor to: obtain a pupil image of a user of the electronic device;determine an eye condition of the user by analyzing the pupil image; andadjust proportions between a red channel, a green channel, and a bluechannel (RGB) of the display screen according to the eye condition. 11.The electronic device according to claim 10, wherein the at least oneprocessor analyzes the pupil image by: processing the pupil image usinga high-contrast and low-light image processing method and obtaining aprocessed pupil image; and analyzing the processed pupil image byanalyzing a grayscale and chrominance variances of the processed pupilimage.
 12. The electronic device according to claim 10, wherein the atleast one processor is further caused to: in response to the user who isdetermined to have an eye disease, adjust the proportions between RGB bydecreasing the blue channel of the display screen.
 13. The electronicdevice according to claim 10, wherein the at least one processor isfurther caused to: in response to the user wearing at least one contactlens, calculate a time length of the user wearing the at least onecontact lens; and transmit a prompt when the time length equals to apreset time length.
 14. The electronic device according to claim 10,wherein the at least one processor is further caused to: determine apupil diameter of the user in the pupil image; and adjust a brightnessvalue of a backlight of the display screen according to the pupildiameter of the user.
 15. The electronic device according to claim 10,wherein the at least one processor is further caused to: obtain an eyeimage of the user; determine an eye action of the user by analyzing theeye image; and adjust the display screen according to the eye action.16. The electronic device according to claim 15, wherein the displayscreen is adjusted by adjusting a brightness value of the backlight ofthe display screen and/or adjusting the proportions between RGB of thedisplay screen according to the eye action.
 17. The electronic deviceaccording to claim 10, wherein the at least one processor is furthercaused to: obtain an eye image of the user; calculate a ratio of a firsttotal number of red pixels in the eye image to a second total number ofall pixels in the eye image; determine whether the user has eye fatigueaccording to the ratio; and control a state of the electronic devicewhen the user has eye fatigue.
 18. The electronic device according toclaim 17, wherein the at least one processor is further caused to:control the electronic device to enter a sleep state when the user haseye fatigue; and wake up the electronic device from the sleep state whenthe electronic device is kept in the sleep state for a predeterminedtime length.